package com.example.springblogdemo.Controller;

import com.example.springblogdemo.Mapper.BlogInfoMapper;
import com.example.springblogdemo.Pojo.Response.BlogListResponse;
import com.example.springblogdemo.Pojo.dataObject.BlogInfo;
import com.example.springblogdemo.Service.BlogService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.springblogdemo.Service.Impl.*;
import java.util.List;
@Slf4j
@RequestMapping("/blog")
@RestController
public class BlogController {
    @Resource(name="blogServiceImpl")
    private BlogService blogService;
    @RequestMapping("/getList")
    public List<BlogListResponse> getList(){
        log.info("获取博客列表");
       return blogService.getList();
    }
}
